package cn.sunshine.ymcc.service;

import cn.sunshine.ymcc.domain.Course;
import cn.sunshine.ymcc.dto.CourseAddDto;
import cn.sunshine.ymcc.vo.CourseDetailInfoVo;
import cn.sunshine.ymcc.vo.CourseInfosTotalAmountVo;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Mr.Jiang
 * @since 2022-08-08
 */
public interface ICourseService extends IService<Course> {

    void save(CourseAddDto courseAddDto);

    // 课程上架
    void onLineCourse(Long courseId);

    // 课程下架
    void offLineCourse(Long courseId);

    CourseDetailInfoVo getdetailInfo(Long courseId);

    CourseInfosTotalAmountVo selectCourseInfosTotalAmount(String courseIds);
}
